package com.richpencil.modules.system.domain;

import cn.hutool.db.PageResult;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import java.util.List;
import java.util.Map;

public class ResultModel<T> {
    private boolean isSuccess=false;						//是否执行成功
    private String errMessage="";							//错误信息
    private List<?> list= Lists.newArrayList();				//list集合
    private Object object="";								//字符串类型数据
    private Map<String, Object> map= Maps.newHashMap();			//Map
    private PageResult pageResult;							//分页返回结果集
    public void setPageResult(PageResult pageResult) {
        this.pageResult = pageResult;
    }
    public PageResult getPageResult() {
        return this.pageResult;
    }
    public void setSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }

    public ResultModel()
    {
    }
    public Object getObject() {
        return object;
    }
    public void setObject(Object object) {
        this.object = object;
    }
    public void setIsSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }
    public boolean getIsSuccess() {
        return this.isSuccess;
    }
    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }
    public String getErrMessage() {
        return this.errMessage;
    }
    public void setList(List<?> list) {
        this.list = list;
    }
    public List<?> getList() {
        return this.list;
    }
    public Map<String, Object> getMap() {
        return map;
    }
    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}